aboutsummaryrefslogtreecommitdiffstats
path: root/src/pages/sujet/[slug].tsx
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2022-01-07 16:33:15 +0100
committerArmand Philippot <git@armandphilippot.com>2022-01-07 18:48:42 +0100
commit8efb9219116a6c665d1059d3218c9405c616e404 (patch)
tree52189ca1e98d9268843a27520b5c7228a5aa8913 /src/pages/sujet/[slug].tsx
parent09e0e2d1569e5098c960299746f7b8632e9b35f3 (diff)
chore: adjust css grid on listing pages without sidebar
Diffstat (limited to 'src/pages/sujet/[slug].tsx')
-rw-r--r--src/pages/sujet/[slug].tsx19
1 files changed, 9 insertions, 10 deletions
diff --git a/src/pages/sujet/[slug].tsx b/src/pages/sujet/[slug].tsx
index c3387b4..71d0f42 100644
--- a/src/pages/sujet/[slug].tsx
+++ b/src/pages/sujet/[slug].tsx
@@ -35,16 +35,15 @@ const Subject: NextPageWithLayout<SubjectProps> = ({ subject }) => {
meta={meta}
title={subject.title}
/>
- <div
- className={styles.body}
- dangerouslySetInnerHTML={{ __html: subject.content }}
- ></div>
- {subject.posts.length > 0 && (
- <section className={styles.section}>
- <h2>{t`All posts in ${subject.title}`}</h2>
- <ol className={styles.list}>{getPostsList()}</ol>
- </section>
- )}
+ <div className={styles.body}>
+ <div dangerouslySetInnerHTML={{ __html: subject.content }}></div>
+ {subject.posts.length > 0 && (
+ <section className={styles.section}>
+ <h2>{t`All posts in ${subject.title}`}</h2>
+ <ol className={styles.list}>{getPostsList()}</ol>
+ </section>
+ )}
+ </div>
</article>
);
};